package com.coffee.sku.api.sku.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.sku.api.sku.query.SkuSalesInformationQuery;
import com.coffee.sku.api.sku.result.SkuSalesInformationResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SkuSalesInformationService {

	Page<SkuSalesInformationResult> getPager(SkuSalesInformationQuery param, PagerInfo pr);
	
	Integer count(SkuSalesInformationQuery param);
	
	SkuSalesInformationResult getDetail(Integer id);
	
	List<SkuSalesInformationResult> getList(SkuSalesInformationQuery param, PagerInfo pr);
	
	List<SkuSalesInformationResult> getList(SkuSalesInformationQuery param);
	
	List<SkuSalesInformationResult> getList();

	void delete(Integer id);

	void addOrUpdate(SkuSalesInformationResult result)throws BusinessException;
	
	Map<Integer,SkuSalesInformationResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SkuSalesInformationResult> getItemMap();
	
}